package com.showcai.service.impl;

import com.showcai.dao.PaymentMapper;
import com.showcai.module.Payment;
import com.showcai.service.PaymentService;
import com.showcai.service.ServiceBase;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * Created by Baggio on 2017-11-22.
 */
@Service
public class PaymentServiceImpl extends ServiceBase implements PaymentService {
    @Autowired
    PaymentMapper paymentMapper;

    @Override
    public void insertPayment(Payment payment) {
        paymentMapper.insertPayment(payment);
    }

    @Override
    public List<Payment> selectpaymentListByOrderId(Long orderId) {
        return paymentMapper.selectpaymentListByOrderId(orderId);
    }

    @Override
    public void modifyPayment(Payment payment) {
        paymentMapper.updatePaymentById(payment);
    }

}
